<?php

/**
 * LEAGUEMan
 * 
 * Copyright (C) 2007 Marko Bischof
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

foreach($this->matches AS $match){
	if($match->match_info_flag){
?>

	<table class="contentpaneopen" style="border:1px solid #DDD">
		<tr>
			<td class="sectiontableheader" colspan="2">
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td width="90%">
							<?php echo $match->team1_name . " - " . $match->team2_name;?>
						</td>
						<td width="10%">
							<div align="center">
								<?php echo $match->match_result_0_1 . " : " . $match->match_result_0_2;?>
							</div>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr class="sectiontableentry1">
			<td width="20%">
				<div align="center">
					<img src="components/com_leagueman/images/goals.gif" />
				</div>
			</td>
			<td width="80%"><?php $this->plugin("leagueman_get_match_event", $this->project, $match, 1, $this->Itemid)?></td>
		</tr>
		<tr class="sectiontableentry2">
			<td width="20%">
				<div align="center">
					<img src="components/com_leagueman/images/yellow.gif" />
				</div>
			</td>
			<td><?php $this->plugin("leagueman_get_match_event", $this->project, $match, 4, $this->Itemid)?></td>
		</tr>
		<tr class="sectiontableentry1">
			<td width="20%">
				<div align="center">
					<img src="components/com_leagueman/images/yellow_red.gif" />
				</div>
			</td>
			<td><?php $this->plugin("leagueman_get_match_event", $this->project, $match, 5, $this->Itemid)?></td>
		</tr>
		<tr class="sectiontableentry2">
			<td width="20%">
				<div align="center">
					<img src="components/com_leagueman/images/red.gif" />
				</div>
			</td>
			<td><?php $this->plugin("leagueman_get_match_event", $this->project, $match, 6, $this->Itemid)?></td>
		</tr>
	</table>
	<br />
<?php
	}
}

?>